package stu.aistar.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import stu.aistar.mapper.CinameMapper;
import stu.aistar.model.pojo.Ciname;
import stu.aistar.service.ICinameService;

import java.util.List;

@Service
public class CinameServiceImpl implements ICinameService {
    @Autowired
    private CinameMapper cinameMapper;
    @Override
    public List<Ciname> findCinamesByArea(String city, String area) {
        return cinameMapper.findByArea(city,area);
    }

    @Override
    public Ciname findById(Integer id) {
        return cinameMapper.findById(id);
    }

    @Override
    public List<String> findAllAddress(String name) {
        return cinameMapper.findAllAddress(name);
    }

    @Override
    public Ciname findByAddress(String address) {
        return cinameMapper.findByAddress(address);
    }
}
